package com.ruoyi.product.service;

import java.util.List;

public interface QuanZiApi {

    public Boolean queryUserIsLike(Long userId, String publishId);
    /**
     * 点赞
     *
     * @param userId
     * @param publishId
     * @return
     */
    boolean saveLikeComment(Long userId, String publishId);

    Long queryLikeCount(String publishId);

    Long queryLoveCount(String publishId);

    Boolean queryUserIsLove(Long userId, String publishId);

    String getCommentUserLoveRedisKey(Long userId);

    String getCommentRedisKeyPrefix(String publishId);

    String getCommentUserLikeRedisKeyPrefix(Long userId);

    /**
     * 取消点赞、喜欢等
     *
     * @param userId
     * @param publishId
     * @return
     */
    boolean removeComment(Long userId, String publishId, Integer commentType);

    /**
     * 喜欢
     *
     * @param userId
     * @param publishId
     * @return
     */
    boolean saveLoveComment(Long userId, String publishId);

    Boolean saveComment(Long userId, String publishId,
                        String commentType, String content);
}
